package oop.controller.action.topicconst;

import oop.controller.action.DefaultAction;
import oop.db.dao.TopicConstraintDAO;

public class DeleteAction extends DefaultAction {

	@Override
	public void performImpl() throws Exception {
		long testStructureId = getParams().getLong("test");
		long sectionStructureId = getParams().getLong("section");
		long topicId = getParams().getLong("topic");
		TopicConstraintDAO.drop(sectionStructureId, topicId);
		setNextAction("teststruct.view&tsv_id=" + testStructureId);
	}

}
